package eyrolles;

/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
/**
 *
 * @author julientrebern
 */
public class Factory {

    public static Object getObject(String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
        Class classe = Class.forName(className);
        Object objet = classe.newInstance();
        return objet;
    }
}
